package com.tiamo.traders.service.serviceImpl;

import com.tiamo.traders.entity.AboutPerson;
import com.tiamo.traders.mapper.AboutPersonMapper;
import com.tiamo.traders.service.AboutPersonService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class AboutPersonServiceImpl implements AboutPersonService {
    @Autowired
    AboutPersonMapper aboutPersonMapper;

    @Override
    public int add(AboutPerson aboutPerson) {
        return aboutPersonMapper.add(aboutPerson);
    }

    @Override
    public int update(AboutPerson aboutPerson) {
        return aboutPersonMapper.update(aboutPerson);
    }

    @Override
    public int delete(AboutPerson aboutPerson) {
        return aboutPersonMapper.delete(aboutPerson);
    }

    @Override
    public List<AboutPerson> findAll(AboutPerson aboutPerson) {
        return aboutPersonMapper.findAll(aboutPerson);
    }

    @Override
    public AboutPerson findById(AboutPerson aboutPerson) {
        return aboutPersonMapper.findById(aboutPerson);

    }

    @Override
    public int getCount(AboutPerson aboutPerson) {
        return aboutPersonMapper.getCount(aboutPerson);
    }
}
